<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>misc/mc.menu.in</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/misc.html'>misc</a>/mc.menu.in</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/misc.html'>misc</a>/mc.menu.in</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 misc/mc.menu.in'  /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a>shell_patterns=0
<a id='L2' name='L2'></a> 
<a id='L3' name='L3'></a>##############################################################################
<a id='L4' name='L4'></a>#   %%  The % character
<a id='L5' name='L5'></a>#   %f  The current file (if non-local vfs, file will be copied locally and
<a id='L6' name='L6'></a>#                         %f will be full path to it)
<a id='L7' name='L7'></a>#   %p  The current file
<a id='L8' name='L8'></a>#   %d  The current working directory
<a id='L9' name='L9'></a>#   %s  "Selected files"; the tagged files if any, otherwise the current file
<a id='L10' name='L10'></a>#   %t  Tagged files
<a id='L11' name='L11'></a>#   %u  Tagged files (and they are untagged on return from expand_format)
<a id='L12' name='L12'></a>#   %view Runs the commands and pipes standard output to the view command
<a id='L13' name='L13'></a>#   If %view is immediately followed by '{', recognize keywords
<a id='L14' name='L14'></a>#   ascii, hex, nroff and unform
<a id='L15' name='L15'></a>#
<a id='L16' name='L16'></a>#   If the format letter is in uppercase, it refers to the other panel
<a id='L17' name='L17'></a>#
<a id='L18' name='L18'></a>#   With a number followed the % character you can turn quoting on (default)
<a id='L19' name='L19'></a>#   and off. For example:
<a id='L20' name='L20'></a>#   %f    quote expanded macro
<a id='L21' name='L21'></a>#   %1f   ditto
<a id='L22' name='L22'></a>#   %0f   don't quote expanded macro
<a id='L23' name='L23'></a>##############################################################################
<a id='L24' name='L24'></a> 
<a id='L25' name='L25'></a>+ ! t t
<a id='L26' name='L26'></a>@       Do something on the current file
<a id='L27' name='L27'></a>        CMD=%{Enter command}
<a id='L28' name='L28'></a>        $CMD %f
<a id='L29' name='L29'></a> 
<a id='L30' name='L30'></a>+ t t
<a id='L31' name='L31'></a>@       Do something on the tagged files
<a id='L32' name='L32'></a>        CMD=%{Enter command}
<a id='L33' name='L33'></a>        for i in %t ; do
<a id='L34' name='L34'></a>            $CMD "$i"
<a id='L35' name='L35'></a>        done
<a id='L36' name='L36'></a> 
<a id='L37' name='L37'></a>0       Edit a bug report and send it to root
<a id='L38' name='L38'></a>        I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1
<a id='L39' name='L39'></a>        ${EDITOR-vi} "$I"
<a id='L40' name='L40'></a>        test -r "$I" &amp;&amp; mail root &lt; "$I"
<a id='L41' name='L41'></a>        rm -f "$I"
<a id='L42' name='L42'></a> 
<a id='L43' name='L43'></a>=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ &amp; t r
<a id='L44' name='L44'></a>1       Display the file with roff -man
<a id='L45' name='L45'></a>        %view{ascii,nroff} roff @MAN_FLAGS@ @MANDOC@ %f
<a id='L46' name='L46'></a> 
<a id='L47' name='L47'></a>2       Call the info hypertext browser
<a id='L48' name='L48'></a>        info
<a id='L49' name='L49'></a> 
<a id='L50' name='L50'></a>= t d
<a id='L51' name='L51'></a>3       Compress the current subdirectory (tar.gz)
<a id='L52' name='L52'></a>        Pwd=`basename %d /`
<a id='L53' name='L53'></a>        echo -n "Name of the compressed file (without extension) [$Pwd]: "
<a id='L54' name='L54'></a>        read tar
<a id='L55' name='L55'></a>        [ "$tar"x = x ] &amp;&amp; tar="$Pwd"
<a id='L56' name='L56'></a>        cd .. &amp;&amp; \
<a id='L57' name='L57'></a>        tar cf - "$Pwd" | gzip -f9 &gt; "$tar.tar.gz" &amp;&amp; \
<a id='L58' name='L58'></a>        echo "../$tar.tar.gz created."
<a id='L59' name='L59'></a> 
<a id='L60' name='L60'></a>4       Compress the current subdirectory (tar.bz2)
<a id='L61' name='L61'></a>        Pwd=`basename %d /`
<a id='L62' name='L62'></a>        echo -n "Name of the compressed file (without extension) [$Pwd]: "
<a id='L63' name='L63'></a>        read tar
<a id='L64' name='L64'></a>        [ "$tar"x = x ] &amp;&amp; tar="$Pwd"
<a id='L65' name='L65'></a>        cd .. &amp;&amp; \
<a id='L66' name='L66'></a>        tar cf - "$Pwd" | bzip2 -f &gt; "$tar.tar.bz2" &amp;&amp; \
<a id='L67' name='L67'></a>        echo "../$tar.tar.bz2 created."
<a id='L68' name='L68'></a> 
<a id='L69' name='L69'></a>5       Compress the current subdirectory (tar.7z)
<a id='L70' name='L70'></a>        Pwd=`basename %d /`
<a id='L71' name='L71'></a>        echo -n "Name of the compressed file (without extension) [$Pwd]: "
<a id='L72' name='L72'></a>        read tar
<a id='L73' name='L73'></a>        [ "$tar"x = x ] &amp;&amp; tar="$Pwd"
<a id='L74' name='L74'></a>        cd .. &amp;&amp; \
<a id='L75' name='L75'></a>        tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" &amp;&amp; \
<a id='L76' name='L76'></a>        echo "../$tar.tar.7z created."
<a id='L77' name='L77'></a> 
<a id='L78' name='L78'></a>6       Compress the current subdirectory (tar.xz)
<a id='L79' name='L79'></a>        Pwd=`basename %d /`
<a id='L80' name='L80'></a>        echo -n "Name of the compressed file (without extension) [$Pwd]: "
<a id='L81' name='L81'></a>        read tar
<a id='L82' name='L82'></a>        [ "$tar"x = x ] &amp;&amp; tar="$Pwd"
<a id='L83' name='L83'></a>        cd .. &amp;&amp; \
<a id='L84' name='L84'></a>        tar cf - "$Pwd" | xz -f &gt; "$tar.tar.xz" &amp;&amp; \
<a id='L85' name='L85'></a>        echo "../$tar.tar.xz created."
<a id='L86' name='L86'></a> 
<a id='L87' name='L87'></a>7       Compress the current subdirectory (tar.zst)
<a id='L88' name='L88'></a>        Pwd=`basename %d /`
<a id='L89' name='L89'></a>        echo -n "Name of the compressed file (without extension) [$Pwd]: "
<a id='L90' name='L90'></a>        read tar
<a id='L91' name='L91'></a>        [ "$tar"x = x ] &amp;&amp; tar="$Pwd"
<a id='L92' name='L92'></a>        cd .. &amp;&amp; \
<a id='L93' name='L93'></a>        tar cf - "$Pwd" | zstd -f &gt; "$tar.tar.zst" &amp;&amp; \
<a id='L94' name='L94'></a>        echo "../$tar.tar.zst created."
<a id='L95' name='L95'></a> 
<a id='L96' name='L96'></a>= f \.c$ &amp; t r
<a id='L97' name='L97'></a>+ f \.c$ &amp; t r &amp; ! t t
<a id='L98' name='L98'></a>c       Compile and link current .c file
<a id='L99' name='L99'></a>        make "`basename %f .c`" 2&gt;/dev/null || cc -O -o "`basename %f .c`" %f
<a id='L100' name='L100'></a> 
<a id='L101' name='L101'></a>+ t r &amp; ! t t
<a id='L102' name='L102'></a>a       Append file to opposite
<a id='L103' name='L103'></a>        cat %f &gt;&gt; %D/%f
<a id='L104' name='L104'></a> 
<a id='L105' name='L105'></a>+ t t
<a id='L106' name='L106'></a>A       Append files to opposite files
<a id='L107' name='L107'></a>        for i in %t ; do
<a id='L108' name='L108'></a>            cat "$i" &gt;&gt; %D/"$i"
<a id='L109' name='L109'></a>        done
<a id='L110' name='L110'></a> 
<a id='L111' name='L111'></a>+ t r &amp; ! t t
<a id='L112' name='L112'></a>d       Delete file if a copy exists in the other directory.
<a id='L113' name='L113'></a>        if [ %d = %D ]; then
<a id='L114' name='L114'></a>            echo "The two directories must be different."
<a id='L115' name='L115'></a>            exit 1
<a id='L116' name='L116'></a>        fi
<a id='L117' name='L117'></a>        if [ -f %D/%f ]; then        # if two of them, then
<a id='L118' name='L118'></a>            if cmp -s %D/%f %f; then
<a id='L119' name='L119'></a>                rm %f &amp;&amp; echo %f": DELETED."
<a id='L120' name='L120'></a>            else
<a id='L121' name='L121'></a>                echo %f" and "%D/%f" differ: NOT deleted."
<a id='L122' name='L122'></a>                echo -n "Press RETURN "
<a id='L123' name='L123'></a>                read key
<a id='L124' name='L124'></a>            fi
<a id='L125' name='L125'></a>        else
<a id='L126' name='L126'></a>            echo %f": No copy in "%D/%f": NOT deleted."
<a id='L127' name='L127'></a>        fi
<a id='L128' name='L128'></a> 
<a id='L129' name='L129'></a>+ t t
<a id='L130' name='L130'></a>D       Delete tagged files if a copy exists in the other directory.
<a id='L131' name='L131'></a>        if [ %d = %D ]; then
<a id='L132' name='L132'></a>            echo "The two directores must be different."
<a id='L133' name='L133'></a>            exit 1
<a id='L134' name='L134'></a>        fi
<a id='L135' name='L135'></a>        for i in %t ; do
<a id='L136' name='L136'></a>            if [ -f %D/"$i" ]; then
<a id='L137' name='L137'></a>                SUM1=`sum "$i"`
<a id='L138' name='L138'></a>                SUM2=`sum %D/"$i"`
<a id='L139' name='L139'></a>                if [ "$SUM1" = "$SUM2" ]; then
<a id='L140' name='L140'></a>                    rm "$i" &amp;&amp; echo "${i}: DELETED."
<a id='L141' name='L141'></a>                else
<a id='L142' name='L142'></a>                    echo "$i and "%D"/$i differ: NOT deleted."
<a id='L143' name='L143'></a>                fi
<a id='L144' name='L144'></a>            else
<a id='L145' name='L145'></a>                echo "$i has no copy in "%D": NOT deleted."
<a id='L146' name='L146'></a>            fi
<a id='L147' name='L147'></a>        done
<a id='L148' name='L148'></a> 
<a id='L149' name='L149'></a>m       View manual page
<a id='L150' name='L150'></a>        MAN=%{Enter manual name}
<a id='L151' name='L151'></a>        %view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat "$MAN"
<a id='L152' name='L152'></a> 
<a id='L153' name='L153'></a>= f \.gz$ &amp; t r
<a id='L154' name='L154'></a>+ ! t t
<a id='L155' name='L155'></a>n       Inspect gzip'ed newsbatch file
<a id='L156' name='L156'></a>        dd if=%f bs=1 skip=12 | zcat | ${PAGER-more}
<a id='L157' name='L157'></a>        # assuming the cunbatch header is 12 bytes long.
<a id='L158' name='L158'></a> 
<a id='L159' name='L159'></a>= t r &amp;
<a id='L160' name='L160'></a>+ ! t t
<a id='L161' name='L161'></a>h       Strip headers from current newsarticle
<a id='L162' name='L162'></a>        CHECK=`awk '{print $1 ; exit}' %f` 2&gt;/dev/null
<a id='L163' name='L163'></a>        case "$CHECK" in
<a id='L164' name='L164'></a>            Newsgroups:|Path:)
<a id='L165' name='L165'></a>                I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
<a id='L166' name='L166'></a>                cp %f "$I" &amp;&amp; sed '/^'"$CHECK"' /,/^$/d' "$I" &gt; %f
<a id='L167' name='L167'></a>                [ "$?" = "0" ] &amp;&amp; rm "$I"
<a id='L168' name='L168'></a>                echo %f": header removed."
<a id='L169' name='L169'></a>                ;;
<a id='L170' name='L170'></a>            *)
<a id='L171' name='L171'></a>                echo %f" is not a news article."
<a id='L172' name='L172'></a>                ;;
<a id='L173' name='L173'></a>        esac
<a id='L174' name='L174'></a> 
<a id='L175' name='L175'></a>+ t t
<a id='L176' name='L176'></a>H       Strip headers from the marked newsarticles
<a id='L177' name='L177'></a>        for i in %t ; do
<a id='L178' name='L178'></a>            CHECK=`awk '{print $1 ; exit}' "$i"` 2&gt;/dev/null
<a id='L179' name='L179'></a>            WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1
<a id='L180' name='L180'></a>            case "$CHECK" in
<a id='L181' name='L181'></a>                Newsgroups:|Path:)
<a id='L182' name='L182'></a>                    cp "$i" "$WFILE" &amp;&amp; sed '/^'"$CHECK"' /,/^$/d' "$WFILE" &gt; "$i"
<a id='L183' name='L183'></a>                    if [ "$?" = "0" ]; then
<a id='L184' name='L184'></a>                        rm "$WFILE"; echo "$i header removed. OK."
<a id='L185' name='L185'></a>                    else
<a id='L186' name='L186'></a>                        echo "Oops! Please check $i against $WFILE."
<a id='L187' name='L187'></a>                    fi
<a id='L188' name='L188'></a>                    ;;
<a id='L189' name='L189'></a>                *)
<a id='L190' name='L190'></a>                    echo "$i skipped: Not a news article."
<a id='L191' name='L191'></a>                    ;;
<a id='L192' name='L192'></a>            esac
<a id='L193' name='L193'></a>        done
<a id='L194' name='L194'></a> 
<a id='L195' name='L195'></a>= t r
<a id='L196' name='L196'></a>+ ! t t
<a id='L197' name='L197'></a>r       Copy file to remote host
<a id='L198' name='L198'></a>        echo -n "To which host?: "
<a id='L199' name='L199'></a>        read Host
<a id='L200' name='L200'></a>        echo -n "To which directory on $Host?: "
<a id='L201' name='L201'></a>        read Dir
<a id='L202' name='L202'></a>        rcp -p %f "${Host}:${Dir}"
<a id='L203' name='L203'></a> 
<a id='L204' name='L204'></a>+ t t
<a id='L205' name='L205'></a>R       Copy files to remote host (no error checking)
<a id='L206' name='L206'></a>        echo -n "Copy files to which host?: "
<a id='L207' name='L207'></a>        read Host
<a id='L208' name='L208'></a>        echo -n "To which directory on $Host? :"
<a id='L209' name='L209'></a>        read Dir
<a id='L210' name='L210'></a>        rcp -pr %u "${Host}:${Dir}"
<a id='L211' name='L211'></a> 
<a id='L212' name='L212'></a>= f \.tex$ &amp; t r
<a id='L213' name='L213'></a>+ f \.tex$ &amp; t r &amp; ! t t
<a id='L214' name='L214'></a>t       Run latex on file and show it with xdvi
<a id='L215' name='L215'></a>        latex %f &amp;&amp; xdvi "`basename %f .tex`".dvi
<a id='L216' name='L216'></a> 
<a id='L217' name='L217'></a>=+ f ^part | f ^Part | f uue &amp; t r
<a id='L218' name='L218'></a>+ t t
<a id='L219' name='L219'></a>U       Uudecode marked news articles (needs work)
<a id='L220' name='L220'></a>        (
<a id='L221' name='L221'></a>            for i in %t ; do # strip headers
<a id='L222' name='L222'></a>                FIRST=`awk '{print $1 ; exit}' "$i"`
<a id='L223' name='L223'></a>                cat "$i" | sed '/^'"$FIRST"' /,/^$/d'
<a id='L224' name='L224'></a>            done
<a id='L225' name='L225'></a>        ) | sed '/^$/d' | sed -n '/^begin 6/,/^end$/p' | uudecode
<a id='L226' name='L226'></a>        if [ "$?" != "0" ]; then
<a id='L227' name='L227'></a>            echo "Cannot decode "%t"."
<a id='L228' name='L228'></a>        fi
<a id='L229' name='L229'></a>        echo "Please test the output file before deleting anything."
<a id='L230' name='L230'></a> 
<a id='L231' name='L231'></a>=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.zst | f \.tar\.Z$ | f \.tar\.bz2$ &amp; t rl
<a id='L232' name='L232'></a>x       Extract the contents of a compressed tar file
<a id='L233' name='L233'></a>        unset PRG
<a id='L234' name='L234'></a>        case %f in
<a id='L235' name='L235'></a>            *.tar.7z)   PRG="7za e -so";;
<a id='L236' name='L236'></a>            *.tar.bz2)  PRG="bunzip2 -c";;
<a id='L237' name='L237'></a>            *.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z) PRG="gzip -dc";;
<a id='L238' name='L238'></a>            *.tar.lz)   PRG="lzip -dc";;
<a id='L239' name='L239'></a>            *.tar.lz4)  PRG="lz4 -dc";;
<a id='L240' name='L240'></a>            *.tar.lzma) PRG="lzma -dc";;
<a id='L241' name='L241'></a>            *.tar.xz)   PRG="xz -dc";;
<a id='L242' name='L242'></a>            *.tar.zst)  PRG="zstd -dc";;
<a id='L243' name='L243'></a>            *)          exit 1;;
<a id='L244' name='L244'></a>        esac
<a id='L245' name='L245'></a>        $PRG %f | tar xvf -
<a id='L246' name='L246'></a> 
<a id='L247' name='L247'></a>= t r
<a id='L248' name='L248'></a>+ ! t t
<a id='L249' name='L249'></a>y       Gzip or gunzip current file
<a id='L250' name='L250'></a>        unset DECOMP
<a id='L251' name='L251'></a>        case %f in
<a id='L252' name='L252'></a>            *.gz|*.[zZ]) DECOMP=-d;;
<a id='L253' name='L253'></a>        esac
<a id='L254' name='L254'></a>        # Do *not* add quotes around $DECOMP!
<a id='L255' name='L255'></a>        gzip $DECOMP -v %f
<a id='L256' name='L256'></a> 
<a id='L257' name='L257'></a>+ t t
<a id='L258' name='L258'></a>Y       Gzip or gunzip tagged files
<a id='L259' name='L259'></a>        for i in %t ; do
<a id='L260' name='L260'></a>            unset DECOMP
<a id='L261' name='L261'></a>            case "$i" in
<a id='L262' name='L262'></a>                *.gz|*.[zZ]) DECOMP=-d;;
<a id='L263' name='L263'></a>            esac
<a id='L264' name='L264'></a>            gzip $DECOMP -v "$i"
<a id='L265' name='L265'></a>        done
<a id='L266' name='L266'></a> 
<a id='L267' name='L267'></a>+ ! t t
<a id='L268' name='L268'></a>b       Bzip2 or bunzip2 current file
<a id='L269' name='L269'></a>        unset DECOMP
<a id='L270' name='L270'></a>        case %f in
<a id='L271' name='L271'></a>            *.bz2) DECOMP=-d;;
<a id='L272' name='L272'></a>        esac
<a id='L273' name='L273'></a>        bzip2 $DECOMP -v %f
<a id='L274' name='L274'></a> 
<a id='L275' name='L275'></a>+ t t
<a id='L276' name='L276'></a>B       Bzip2 or bunzip2 tagged files
<a id='L277' name='L277'></a>        for i in %t ; do
<a id='L278' name='L278'></a>            unset DECOMP
<a id='L279' name='L279'></a>            case "$i" in
<a id='L280' name='L280'></a>                *.bz2) DECOMP=-d;;
<a id='L281' name='L281'></a>            esac
<a id='L282' name='L282'></a>            bzip2 $DECOMP -v "$i"
<a id='L283' name='L283'></a>        done
<a id='L284' name='L284'></a> 
<a id='L285' name='L285'></a>+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ &amp; t r &amp; ! t t
<a id='L286' name='L286'></a>z       Extract compressed tar file to subdirectory
<a id='L287' name='L287'></a>        unset D
<a id='L288' name='L288'></a>        set gzip -cd
<a id='L289' name='L289'></a>        case %f in
<a id='L290' name='L290'></a>            *.tar.F)   D=`basename %f .tar.F`; set freeze -dc;;
<a id='L291' name='L291'></a>            *.tar.Z)   D=`basename %f .tar.Z`;;
<a id='L292' name='L292'></a>            *.tar.bz2) D=`basename %f .tar.bz2`; set bunzip2 -c;;
<a id='L293' name='L293'></a>            *.tar.gz)  D=`basename %f .tar.gz`;;
<a id='L294' name='L294'></a>            *.tar.z)   D=`basename %f .tar.z`;;
<a id='L295' name='L295'></a>            *.tgz)     D=`basename %f .tgz`;;
<a id='L296' name='L296'></a>            *.tpz)     D=`basename %f .tpz`;;
<a id='L297' name='L297'></a>        esac
<a id='L298' name='L298'></a>        mkdir "$D"; cd "$D" &amp;&amp; ("$1" "$2" ../%f | tar xvf -)
<a id='L299' name='L299'></a> 
<a id='L300' name='L300'></a>+ t t
<a id='L301' name='L301'></a>Z       Extract compressed tar files to subdirectories
<a id='L302' name='L302'></a>        for i in %t ; do
<a id='L303' name='L303'></a>            set gzip -dc
<a id='L304' name='L304'></a>            unset D
<a id='L305' name='L305'></a>            case "$i" in
<a id='L306' name='L306'></a>                *.tar.F)   D=`basename "$i" .tar.F`; set freeze -dc;;
<a id='L307' name='L307'></a>                *.tar.Z)   D=`basename "$i" .tar.Z`;;
<a id='L308' name='L308'></a>                *.tar.bz2) D=`basename "$i" .tar.bz2`; set bunzip2 -c;;
<a id='L309' name='L309'></a>                *.tar.gz)  D=`basename "$i" .tar.gz`;;
<a id='L310' name='L310'></a>                *.tar.z)   D=`basename "$i" .tar.z`;;
<a id='L311' name='L311'></a>                *.tgz)     D=`basename "$i" .tgz`;;
<a id='L312' name='L312'></a>                *.tpz)     D=`basename "$i" .tpz`;;
<a id='L313' name='L313'></a>          esac
<a id='L314' name='L314'></a>          mkdir "$D"; (cd "$D" &amp;&amp; "$1" "$2" "../$i" | tar xvf -)
<a id='L315' name='L315'></a>        done
<a id='L316' name='L316'></a> 
<a id='L317' name='L317'></a>+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ &amp; t r &amp; ! t t
<a id='L318' name='L318'></a>c       Convert gz&lt;-&gt;bz2, tar.gz&lt;-&gt;tar.bz2 &amp; tgz-&gt;tar.bz2
<a id='L319' name='L319'></a>        unset D
<a id='L320' name='L320'></a>        unset EXT
<a id='L321' name='L321'></a>        case %f in
<a id='L322' name='L322'></a>            *.Z)   EXT=Z;;
<a id='L323' name='L323'></a>            *.bz2) EXT=bz2;;
<a id='L324' name='L324'></a>            *.gz)  EXT=gz;;
<a id='L325' name='L325'></a>            *.tgz) EXT=tgz;;
<a id='L326' name='L326'></a>            *.tpz) EXT=tpz;;
<a id='L327' name='L327'></a>            *.z)   EXT=z;;
<a id='L328' name='L328'></a>        esac
<a id='L329' name='L329'></a>        case "$EXT" in
<a id='L330' name='L330'></a>            bz2|Z|gz|z) D=`basename %f ."$EXT"`;;
<a id='L331' name='L331'></a>            tgz|tpz)    D=`basename %f ."$EXT"`.tar;;
<a id='L332' name='L332'></a>        esac
<a id='L333' name='L333'></a>        if [ "$EXT" = "bz2" ]; then
<a id='L334' name='L334'></a>            bunzip2 -v %f
<a id='L335' name='L335'></a>            gzip -f9 -v "$D"
<a id='L336' name='L336'></a>        else
<a id='L337' name='L337'></a>            gunzip -v %f
<a id='L338' name='L338'></a>            bzip2 -v "$D"
<a id='L339' name='L339'></a>        fi
<a id='L340' name='L340'></a> 
<a id='L341' name='L341'></a>+ t t
<a id='L342' name='L342'></a>C       Convert gz&lt;-&gt;bz2, tar.gz&lt;-&gt;tar.bz2 &amp; tgz-&gt;tar.bz2
<a id='L343' name='L343'></a>        for i in %t ; do
<a id='L344' name='L344'></a>            unset D
<a id='L345' name='L345'></a>            unset EXT
<a id='L346' name='L346'></a>            case "$i" in
<a id='L347' name='L347'></a>                *.Z)   EXT=Z;;
<a id='L348' name='L348'></a>                *.bz2) EXT=bz2;;
<a id='L349' name='L349'></a>                *.gz)  EXT=gz;;
<a id='L350' name='L350'></a>                *.tgz) EXT=tgz;;
<a id='L351' name='L351'></a>                *.tpz) EXT=tpz;;
<a id='L352' name='L352'></a>                *.z)   EXT=z;;
<a id='L353' name='L353'></a>            esac
<a id='L354' name='L354'></a>            case "$EXT" in
<a id='L355' name='L355'></a>                bz2|Z|gz|z) D=`basename "$i" ."$EXT"`;;
<a id='L356' name='L356'></a>                tgz|tpz)    D=`basename "$i" ."$EXT"`.tar;;
<a id='L357' name='L357'></a>            esac
<a id='L358' name='L358'></a>            if [ "$EXT" = "bz2" ]; then
<a id='L359' name='L359'></a>                bunzip2 -v "$i"
<a id='L360' name='L360'></a>                gzip -f9 -v "$D"
<a id='L361' name='L361'></a>            else
<a id='L362' name='L362'></a>                gunzip -v "$i"
<a id='L363' name='L363'></a>                bzip2 -v "$D"
<a id='L364' name='L364'></a>            fi
<a id='L365' name='L365'></a>        done
<a id='L366' name='L366'></a> 
<a id='L367' name='L367'></a>+ x /usr/bin/open | x /usr/local/bin/open &amp; x /bin/sh
<a id='L368' name='L368'></a>o       Open next a free console
<a id='L369' name='L369'></a>        open -s -- sh
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+369 misc/mc.menu.in'  /> */</em>
</body>
</html>
